import { AppRouteRecordRaw } from '../types'


export const TABLE_ROUTE:AppRouteRecordRaw = {
    path: '/form',
    name: 'Form',
    parent: 'Components',
    meta: {
      title: '表单示例'
    },
    component: () => import('@/views/example/form.vue')
  
}


export const DASHBOARD_ROUTE:AppRouteRecordRaw = {
  path: '/dashboard',
  name: 'Dashboard',
  parent: 'Components',
  component: () => import('@/views/example/dashboard.vue'),
  meta: {
    title:'看板'
  },  
}


export const NOTE_ROUTE:AppRouteRecordRaw = {
  path: '/table',
  name: 'Table',
  parent: 'Components',
  component: () => import('@/views/example/table.vue'),
  meta: {
    title:'表格示例'
  },  
}

export const FILE_ROUTE:AppRouteRecordRaw = {
  path: '/files',
  name: 'Files',
  parent: 'Components',
  component: () => import('@/views/example/files.vue'),
  meta: {
    title:'文件示例'
  },  
}


export const USER: AppRouteRecordRaw = {
  path: '/user',
  name: 'User',
  parent: 'Components',
  component: () => import('@/views/example/user.vue'),
  meta: {
    title:'用户中心',
    hideMenu: true
  },  
}

export const SiteCollection: AppRouteRecordRaw = {
  path: '/siteCollection',
  name: 'SiteCollection',
  parent: 'System',
  component: () => import('@/views/modules/example/index.vue'),
  meta: {
    type: 'link',  
    title:'网站集合',
    hideMenu: false
  },  
}
export const CommodityRoute: AppRouteRecordRaw = {
  path: '/commodityMaintenance',
  name: 'CommodityMaintenance',
  component: () => import('@/views/modules/example/index.vue'),
  meta: {
    title:'商品维护',
    hideMenu: false
  },  
}